From: Joan Torres Lopez Date: Wed, 21 Jan 2026 13:23:34 +0000 (+0100) Subject: authPrompt: Don't reset preemptiveAnswer when VERIFICATION_IN_PROGRESS X-Git-Tag: archive/raspbian/50.5-1+rpi1^2~9^2^2~7 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6954e7cf52f098d83ce86b0832c1318e2150512b;p=gnome-shell.git authPrompt: Don't reset preemptiveAnswer when VERIFICATION_IN_PROGRESS PreemptiveAnswer wasn't being used in the case where verification is in progress and the smartcard is inserted, triggering a reset. This change ensures a preemptive answer will be used once smartcard service asks for the PIN. Part-of: (cherry picked from commit 9b78793ead5c3b80e39524c2ed5648798d3c27e7) --- diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 2c6c61627..fe81c9914 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -736,7 +736,8 @@ export const AuthPrompt = GObject.registerClass({ this.verificationStatus = AuthPromptStatus.NOT_VERIFYING; this.cancelButton.reactive = this._hasCancelButton; this.cancelButton.can_focus = this._hasCancelButton; - this._preemptiveAnswer = null; + if (oldStatus !== AuthPromptStatus.VERIFICATION_IN_PROGRESS) + this._preemptiveAnswer = null; if (this._userVerifier) this._userVerifier.cancel();